package com.jie.entity;

import com.jie.able.IStrategy;

/**
 * 计谋有了，那还要有锦囊
 * @author jie
 * @date 2019/11/4 -17:49
 */
public class Context {
    //构造函数，你要使用那个妙计
    private IStrategy strategy;

    public Context(IStrategy strategy) {
        this.strategy = strategy;
    }

    //使用计谋了，看我出招了
    public void operate(){
        this.strategy.operate();
    }
}
